<?php
$cid = $_GET['cid'];
if (!$cid) {

	$timeformatdiy = $options['listtime'];

	$query_sql = "SELECT a.articleid,a.dateline,a.title,a.alias FROM {$db_prefix}articles a WHERE a.visible='1' ORDER BY a.dateline DESC
LIMIT 1 , 5";

	$querydiy = $DB->query($query_sql);

	$articledbdiy = array();
	while ($articlediy = $DB->fetch_array($querydiy)) {
		$articlediy['url'] = getpermalink($articlediy['articleid'], $articlediy['alias'], 0, sadate('Y/m/d',$article['dateline']));
		$articlediy['userurl'] = getuserlink($articlediy['username']);

		//隐藏变量,默认模板用不着,方便那些做模板可以单独显示月份和号数的的朋友.
		$articlediy['month'] = sadate('M', $articlediy['dateline']);
		$articlediy['day'] = sadate('d', $articlediy['dateline']);

		$articlediy['dateline'] = sadate($timeformatdiy, $articlediy['dateline']);
		$articlediy['title'] = trimmed_title($articlediy['title'], $options['title_limit']);

		$articledbdiy[]=$articlediy;
		unset($articletags);
	}
	unset($articlediy);
	$DB->free_result($querydiy);

}
?>